<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <title><?= CHtml::encode($this->pageTitle); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Arsen Abdusalamov">

    <!-- Le styles -->
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
    </style>
    <link href="http://bootstrap.abdusalam.com/css/bootstrap.min.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="/favicon.ico">
  </head>

  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#">Project name</a>
          <div class="nav-collapse">
            	<? $this->widget('zii.widgets.CMenu',array(
					'items'=>array(
						array('label'=>'Home', 'url'=>array('site/index')),
						array('label'=>'Content', 'url'=>array('content/index')),
						array('label'=>'News', 'url'=>array('news/index')),
						array('label'=>'About', 'url'=>array('site/page', 'view'=>'about')),
						array('label'=>'Contact', 'url'=>array('site/contact')),
						array('label'=>'Login', 'url'=>array('site/login'), 'visible'=>Yii::app()->user->isGuest),
						array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('site/logout'), 'visible'=>!Yii::app()->user->isGuest)
					),
					'htmlOptions' => array(
						'class' => 'nav'
					),
		)); ?>
				
                 <p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
          </div>
        </div>
      </div>
    </div>
	  
    <div class="container">
		
        <? if(isset($this->breadcrumbs)):?>
			<div class="row">
				<div class="span12">
				<ul class="breadcrumb">
				<? foreach( $this->breadcrumbs as $labels => $url ) : ?>
				    <? $label = is_array( $labels ) ? reset( $labels ) : $labels ?>
					<? if( is_numeric( $url ) ): ?>
						<li class="active"><?= $label ?></li>
					<? else: ?>
						<li>
 							<a href="/<?= $url ?>"><?= $label ?></a> 
							<span class="divider">/</span>
						</li>
					<? endif ?>
				<? endforeach ?>
				</ul>
				</div>
			</div>
		<? endif?>
		<div class="row">
        <div class="span2">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header">Sidebar</li>
              <li class="active"><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
		
		<div class="span10 content">
			<?= $content; ?>
		</div>
      </div><!--/row-->

      <hr>

	  
      
	<footer>
        <p>Copyright &copy; 2010-<?= date('Y') ?> by Arsen Abdusalamov </p>
		<p><?= Yii::powered() ?></p>
	</footer>
	  
    </div><!--/.fluid-container-->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
	<script>!window.jQuery && document.write(unescape('%3Cscript src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"'))</script>
	
	<script src="//bootstrap.abdusalam.com/js/bootstrap.min.js"></script>
    
  </body>
</html>
